package com.aliyun.oss;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(AliYun.class)
public class AliyunOssSpringAutoConfiguration {

    @Bean
    public AliYunUtil aliYunUtil(AliYun aliYun){
        AliYunUtil ali = new AliYunUtil();
        ali.setAliYun(aliYun);
        return ali;
    }
}
